package com.asset.salesforce.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


@SuppressWarnings("serial")
@Table(name="shared_lead")
@Entity
public class SharedLead implements Serializable {
	
	private Integer id;

	private Lead lead;
	
	private Employee employee;

	/**
	 * @return the id
	 */
	@Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE ,generator="shared_lead_id_seq")
    @SequenceGenerator(name="shared_lead_id_seq",sequenceName="shared_lead_id_seq",allocationSize=1)
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the lead
	 */
	@ManyToOne
	@JoinColumn(name="lead_id")
	public Lead getLead() {
		return lead;
	}

	/**
	 * @param lead the lead to set
	 */
	public void setLead(Lead lead) {
		this.lead = lead;
	}

	/**
	 * @return the employee
	 */
	@ManyToOne
	@JoinColumn(name="employee_id")
	public Employee getEmployee() {
		return employee;
	}

	/**
	 * @param employee the employee to set
	 */
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
}
